package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.entity.BusinessInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Mr.ma
 * @since 2023/3/8 20:37
 **/
@Mapper
public interface UbBusinessInfoDao extends BaseMapper<BusinessInfo> {

    /**
     * 根据商品id查询店铺
     * @param bid
     * @return
     */
     BusinessInfo selectByBid(String bid);

    /**
     * 交易成功后增加店铺成交额
     * @param bid
     * @param money
     * @return
     */
     int changeMoney(@Param("bid") String bid, @Param("money") double money);
}
